<?php namespace App\Http\Services;
use QL\QueryList;
use Requests;
use Requests_Exception;
/*require_once('D:\xampp\htdocs\f6_shop\vendor\autoload.php') ;*/
class DataManager
{

    private $html = 'https://www.youzan.com/v4/scrm/customer/manage#/?current=';


    public function doGet($page){


        $data = QueryList::setHtml($this->html.$page);// 等同于上面的html()
        $data->rules([
            'link' => ['a','href'],
            'text' => ['a','text']
        ]);

        $data->query();

        $data->getData();

        $data->all();

        return $data->all();

    }
}
